package com.erp.cloudfi.org.profitcenter.controller;

import java.util.List;

import com.erp.cloudfi.org.profitcenter.model.Profitcenter;
import com.erp.cloudfi.org.profitcenter.service.ProfitcenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ItemController {
	
	@Autowired
	private ProfitcenterService service;

	@RequestMapping("queryItem")
	@ResponseBody
	public List<Profitcenter> queryItem(){
		return service.findCentersByGroup("1001");
	}
}
